import 'dart:convert';
import 'package:flutter_app/generated/json/base/json_field.dart';
import 'package:flutter_app/generated/json/list_app_article_entity.g.dart';

@JsonSerializable()
class ListAppArticleEntity {

	int? pageNum;
	int? pageSize;
	int? totalSize;
	int? totalPages;
	List<ListAppArticleContent>? content;
  
  ListAppArticleEntity();

  factory ListAppArticleEntity.fromJson(Map<String, dynamic> json) => $ListAppArticleEntityFromJson(json);

  Map<String, dynamic> toJson() => $ListAppArticleEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class ListAppArticleContent {

	String? id;
	String? articleTargetVOList;
	String? articleType;
	String? contentType;
	String? contentTypeName;
	String? title;
	String? summary;
	@JSONField(name: "source")
	String? xSource;
	String? content;
	String? isTop;
	String? isRotation;
	String? state;
	String? createBy;
	String? createByName;
	String? createTime;
	String? updateBy;
	String? updateByName;
	String? updateTime;
	List<ListAppArticleContentPictureList>? pictureList;
	String? fileList;
	String? rotationPictureList;
	String? articleScopeVOList;
	String? publishBy;
	String? publishByName;
	String? publishTime;
	String? publishDay;
  
  ListAppArticleContent();

  factory ListAppArticleContent.fromJson(Map<String, dynamic> json) => $ListAppArticleContentFromJson(json);

  Map<String, dynamic> toJson() => $ListAppArticleContentToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class ListAppArticleContentPictureList {

	String? id;
	String? name;
	String? duration;
	String? sourcePath;
	String? thumbnailPath;
	String? fileType;
	String? fileSize;
	String? createTime;
	String? isRead;
	String? relationId;
  
  ListAppArticleContentPictureList();

  factory ListAppArticleContentPictureList.fromJson(Map<String, dynamic> json) => $ListAppArticleContentPictureListFromJson(json);

  Map<String, dynamic> toJson() => $ListAppArticleContentPictureListToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}